package com.chb.memento;

/**
 * @author chihb
 * @create-time 2024/10/26 8:47
 * @description
 */
public class Memento {
    private String state;
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    public Order saveStateToOrder(){
        return new Order(state);
    }

    public void getStateFromOrder(Order order){
        state=order.getState();
    }
}
